#ifndef BULLET_H
#define BULLET_H

#include <QObject>
#include <QImage>
#include "Gamemap.h"

class Bullet : public QObject
{
    Q_OBJECT
public:
    Bullet(int px=84,int py=84,int _dir=1,QObject *parent = nullptr);
    void BulletMove();
    void DrawBullet(QPainter* p);
    bool iscollide();
    int HitTank();
    void setTank(void* p);

    QImage bullet;
    int pos_x;
    int pos_y;
    int my_dir;
    int step;
    bool isshoot;
    void *mTank;

signals:

};

#endif // BULLET_H
